﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddOrderSale.aspx.cs" Inherits="ZX.WebApp.Crm.Sale.AddOrderSale" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/layout/assets/skins/sam/layout.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/datatable/assets/skins/sam/datatable.css" />
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/paginator/paginator-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/resize/resize-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/event-delegate/event-delegate-min.js"></script>
    <script src="../../Scripts/extend.validate.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.json-2.2.js" type="text/javascript"></script>
    <script src="../../Scripts/Jquery.form.js" type="text/javascript"></script>
    <script src="../../Scripts/CombinButton.js" type="text/javascript"></script>
    <link href="../../Styles/base.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/extendTable.css" rel="stylesheet" type="text/css" />
</head>
<script src="../../Scripts/Appjs/model.AddOrderSale.Extend.js" type="text/javascript"></script>
<body class="yui-skin-sam" onkeydown="PreventBSK()">
    <form id="form1" runat="server">
    <div>
        <div id="toolbar" style="margin-top: 12px; text-align: center;">
            <button type="button" id="btnSave" name="btnSave">
                保存</button>&nbsp;&nbsp;
            <button type="button" id="btnClose" name="btnClose">
                取消</button>
        </div>
        <div class="fieldForm" id="fieldForm">
            <div id="content">
                <h3>
                    客户基本信息</h3>
                <table class="table1">
                    <tr>
                        <th width="10%">
                            <span>客户名称</span>
                        </th>
                        <td width="23%">
                            <input type="hidden" id="CustomerID" name="CustomerID" runat="server" />
                            <input type="text" id="CustomerName" runat="server" name="CustomerName" readonly="readonly"
                                class="width60" />
                        </td>
                        <th width="10%">
                            <span>客户编码</span>
                        </th>
                        <td width="23%">
                            <input type="text" id="txtCustomerIDs" name="txtCustomerIDs" readonly="readonly"
                                class="width60" runat="server" />
                        </td>
                        <th width="10%">
                            <span>客户类型</span>
                        </th>
                        <td width="23%">
                            <input type="text" id="CustomerType" runat="server" name="CustomerType" readonly="readonly"
                                class="width60" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <span>员工人数</span>
                        </th>
                        <td>
                            <input type="text" id="PersonId" name="PersonId" runat="server" readonly="readonly"
                                class="width60" />
                        </td>
                        <th>
                            <span>所属行业</span>
                        </th>
                        <td>
                            <input type="text" id="TradeId" name="TradeId" runat="server" readonly="readonly"
                                class="width60" />
                        </td>
                        <th>
                            <span>成立日期</span>
                        </th>
                        <td>
                            <input type="text" id="CreateDate" name="CreateDate" runat="server" readonly="readonly"
                                class="width60" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <span>公司产品</span>
                        </th>
                        <td>
                            <input type="text" id="CompanyProduct" name="CompanyProduct" runat="server" readonly="readonly"
                                class="width60" />
                        </td>
                        <th>
                            <span>行销顾问</span>
                        </th>
                        <td>
                            <input type="text" id="SaleadName" runat="server" class="width60" readonly="readonly" />
                        </td>
                        <th>
                            <span>信息专员</span>
                        </th>
                        <td>
                            <input type="text" id="AddUserName" runat="server" class="width60" readonly="readonly" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="extendDiv">
                <div id="con_two_1">
                    <h3>
                        旧产品
                        <button type="button" id="btnNew1" name="btnNew1">
                            新增</button>
                        <button type="button" id="btnDelete1" name="btnDelete1">
                            删除</button>
                    </h3>
                    <div id="con_1">
                    </div>
                </div>
            </div>
            <div class="extendDiv">
                <div id="con_two_2">
                    <h3>
                        新产品
                        <button type="button" id="btnNew2" name="btnNew2">
                            新增</button>
                        <button type="button" id="btnDelete2" name="btnDelete2">
                            删除</button>
                        <span style="color: Red;">剩余金额</span>
                        <input type="text" id="NewMoney" readonly="readonly" style="width: 100px;" />
                    </h3>
                    <div id="con_2">
                    </div>
                </div>
            </div>
            <%--<fieldset>
                <legend>变更历史记录</legend>
                <div class="extendDiv">
                <div id="con_two_3">
                    <div id="con_3">
                    </div>
                </div>
            </div>
            </fieldset>--%>
        </div>
        <div id="dialog1" class="yui-pe-content">
            <div class="hd">
                信息选择</div>
            <div class="bd">
                <iframe id="EditUIWindow1" frameborder="0" src="" style="width: 100%; height: 100%;
                    margin: 0px; padding: 0px;"></iframe>
            </div>
        </div>
    </div>
    </form>
    <form id="form2" style="display: none" action="../../Extend/AjaxData/CustomOperating.aspx">
    <textarea style="display: none" id="jsonDataContent" rows="2" cols="2" name="jsonDataContent"></textarea>
    </form>
</body>
<script type="text/javascript">
    var vId = "<%=Id %>";  //客户ID
    var instance = [{"ProduectList":"","NewProduectList":""}];
    var CrmProduct = [<%=ListCrmProduct %>],
        CrmListUnitId=[<%=ListUnitId %>],
        CrmOrder=[<%=ListOrder %>],
        CrmState=[<%=ListState %>],
        CrmPayType=[<%=PayType %>],
        CrmPayAccount=[<%=PayAccount %>],
        CrmPayId=[<%=PayId %>];
    var myDataSource1, mDataTable1, myDataSource2, mDataTable2, myDataSource2, mDataTable2;
    var btnSave = "", btnClose = "", btnNews1 = "", btnDeletes1 = "", condition = "";

    (function () {
        var Dom = YAHOO.util.Dom,
            Event = YAHOO.util.Event;
        Event.onDOMReady(function () {
            var layout = new YAHOO.widget.Layout({
                units: [
                { position: 'bottom', height: 60, body: 'toolbar', gutter: '1 1 1 1', scroll: null, zIndex: 2 },
                { position: 'center', body: 'fieldForm', gutter: '0 1 1 1', scroll: true }
                ]
            });
            layout.render();
        });
    })();
    //关闭当前页
    var Close = function () {
        window.parent.$("#tabs").tabs('close', '<%=PageTitle %>');
    }
</script>
</html>
